package com.wholesale.utils;

import android.view.View;
import android.widget.TextView;

import com.wholesale.R;

public class GoodsCommentCache {
	private View baseView;
	private TextView content;
	private TextView from;
	private TextView date;

	public GoodsCommentCache(View baseView) {
		this.baseView = baseView;
	}

	public TextView getContent() {
		if (content == null) {
			content = (TextView) baseView.findViewById(R.id.comments_text);
		}
		return content;
	}

	public TextView getFrom() {
		if (from == null) {
			from = (TextView) baseView.findViewById(R.id.from_text);
		}
		return from;
	}

	public TextView getDate() {
		if (date == null) {
			date = (TextView) baseView.findViewById(R.id.senddate_text);
		}
		return date;
	}
}
